package com.dy.drp.service.impl;

import com.dy.drp.dto.PowerDto;
import com.dy.drp.dto.UserDto;
import com.dy.drp.entity.Power;
import com.dy.drp.mapper.PowerMapper;
import com.dy.drp.service.IPowerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dy
 * @since 2022-04-02
 */
@Service
public class PowerServiceImpl extends ServiceImpl<PowerMapper, Power> implements IPowerService {
    @Autowired
    private PowerMapper powerMapper;

    @Override
    public List<PowerDto> selectPowerByRole(UserDto userDto) {
        return powerMapper.selectPowerByRole(userDto);
    }
}
